# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-pandocfilters
pkgver=1.5.0
pkgrel=3
pkgdesc="Python module for writing pandoc filters"
url="https://github.com/jgm/pandocfilters"
arch="noarch"
license="BSD-3-Clause"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
options="!check" # no test suite
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jgm/pandocfilters/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/pandocfilters-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
4b9f63bcea6b0beca6dbc6074d4ce2a4cd2209a7e0d67d45c043c2d5cbfe55a568692ead5132248f2446ce6b5de2d6b0e62320442370ff12991207cc51dab72a  py3-pandocfilters-1.5.0.tar.gz
"
